interface Week {
  days: Day[]
}

interface Day {
  value: number;
  isCurrentMonth: string;
  year: number,
  month: number,
  hasData?:boolean
} 

interface Current {
  today:number,
  month:number,
  year:number,
  week?: string
}

interface FormData {
  weight:number,
  group:number,
  per: number,
  exerciseAreaId: number,
  exerciseMoveId: number | null,
  exerciseName: string,
  unit:string,
}

interface Detail {
  data: FormData,
}

interface CardItem {
  name: string;
  image?: string;
  id:number,
  exercise_area_id?: number,
  description:string
  createTime?:string,
  choose?:boolean,
  hasAdd?:boolean,//是否通过模板添加了动作
}
interface NavItem {
  id:number,
  name: string;
  image?: string,
  cardItem: CardItem[];
}
interface CateNameNum {
  name: string,
  num: number
}

interface EditData {
  weight: number,
  per:number,
  index:number,
  position:string,
  move:string,
  unit:string,
  list:number,
  exerciseareaid:number,
  exercisemoveid:number,
  exercisename:string,
  group:number
}

interface Options {
  url:string,
  method:"OPTIONS" | "GET" | "HEAD" | "POST" | "PUT" | "DELETE" | "TRACE" | "CONNECT" | undefined,
  data:any
}

interface Response {
  code:number,
  msg:string,
  data:any
}

interface BaseData extends FormData {
  createDate: Date | string,
  updateDate:Date | string,
  userId?:number,
  id?:number
}

interface DateCharts {
  beginDate: string,
  endDate: string
}

interface DataCharts {
  exerciseAreaId: number,
  name: string,
  times: number
}

interface PIEData {
  name: string,
  value:number,
}

interface MediaFile {
  /** 视频的时间长度 */
  duration: number
  /** 文件类型
   *
   * 可选值：
   * - 'image': 图片;
   * - 'video': 视频; */
  fileType: 'image' | 'video'
  /** 视频的高度 */
  height: number
  /** 本地临时文件大小，单位 B */
  size: number
  /** 本地临时文件路径 (本地路径) */
  tempFilePath: string
  /** 视频缩略图临时文件路径 */
  thumbTempFilePath: string
  /** 视频的宽度 */
  width: number
}

// 建议
interface Suggest {
  category: string, //分类
  contact: string,//联系方式
  description:string,//描述
  imageURL:Array<string>//图片地址
}

// 用户信息
interface userInfo {
  name:string,
  avatarUrl: string
}

// 日期范围
interface DateRange {
  year: number;
  month: number;
  startDate: number;
  endDate: number;
}

// 模板信息
interface Template {
  id?: number,//模板ID
  title: string,//模板名称
  description: string,//模板描述
}

// 模板本地存储信息
interface TemplateTemp{
  areaId:number | null,//动作部位ID
  areaName:string,//动作名称
  moveInfo: CardItem[]
}

// 添加template
interface AddTemplate {
  templateId: number | null,
  areaInfo: TemplateTemp[],
  description: string,
  title: string
}


